package docmodel;

public class XDPTool {

	public static void main(String[] args) 
	{
		System.out.println("Usage: java -jar convertXFA source.xdp destination.xdp");
		if(args.length<2) {
			for(String arg: args) System.out.print(" - "+arg);
			System.exit(2);
			return;
		}
		
		String inputFile = args[0]; //"prova.xdp";
		String outputFile = args[1]; //"simpleout.xdp"
		XDP_Reader reader = new XDP_Reader(inputFile);		
		reader.run();
		reader.save(outputFile);
		
		System.out.println("Completato");
	}
}
